package modelo.vehiculos;

public class Posicion {
	
	private int coordX;
	private int coordY;
	
	public Posicion(){
		coordX = 0;
		coordY = 0;
	}
	
	public Posicion(int x,int y){
		coordX = x;
		coordY = y;
	}
	
	public void setPosicion(int x,int y){
		coordX = x;
		coordY = y;
	}
	
	public int getX(){
		return coordX;
	}
	
	public int getY(){
		return coordY;
	}

	public void trasladar(int deltaX, int deltaY) {
		coordX += deltaX;
		coordY += deltaY;
	}

}
